Skip to content

Pr/reasoning logging#21

Merged
raghavm243512 merged 1 commit intomainfrom
pr/reasoning_logging
Mar 27, 2026
Merged

Pr/reasoning logging#21
raghavm243512 merged 1 commit intomainfrom
pr/reasoning_logging

Conversation

@raghavm243512
Copy link
Copy Markdown
Collaborator

Log reasoning in agent perf stats and Audit log

"latency": llm_stats.get("latency", 0.0),
"parameters": json.dumps(llm_stats.get("parameters", {})),
"tool_calls": json.dumps(response_tool_calls_for_stats) if response_tool_calls_for_stats else "",
"reasoning": f'"{llm_stats.get("reasoning_content", "")}"',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there are a reason we're doing the formatted string here?

Copy link
Copy Markdown
Collaborator Author

@raghavm243512 raghavm243512 Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, the content is put into the csv file with no delimiters around the string, so if you tried to parse the csv with something and the agent used a comma, it would break

Update system.py

reasoning tokens and quoting

Revert "reasoning tokens and quoting"

This reverts commit a20dee9.

quoting

Apply pre-commit
@raghavm243512 raghavm243512 enabled auto-merge March 27, 2026 22:17
@raghavm243512 raghavm243512 added this pull request to the merge queue Mar 27, 2026
Merged via the queue into main with commit df77cbf Mar 27, 2026
1 check passed
@raghavm243512 raghavm243512 deleted the pr/reasoning_logging branch March 27, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants